<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Input Auto complete Country</title>
<link rel="shortcut icon" href="http://designshack.net/favicon.ico">
<link rel="icon" href="http://designshack.net/favicon.ico">
<link rel="stylesheet" type="text/css" media="all" href="/css/searchStyle.css">
<script type="text/javascript" src="/script/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="/script/jquery.autocomplete.min.js"></script>
<script type="text/javascript" src="/script/currency-autocomplete.js"></script>
<script type="text/javascript" src="/script/all.js"></script>
</head>
<body>
	<!-- 	<div id="topbar"> -->
	<!-- 		<a href="http://designshack.net">Back to Design Shack</a> -->
	<!-- 	</div> -->
	<%
		UserService userService = UserServiceFactory.getUserService();
		User user = userService.getCurrentUser();
		String Role;
		String domain = "temp";
		String identity = user.getEmail();
		if (identity.contains("jaguarlandrover.com"))
			domain = "jaguarlandrover.com";
		if (domain.equalsIgnoreCase("jaguarlandrover.com"))
		{
	%>
	<div id="w">
		<div id="content">
			<!-- 			<p> -->
			<!-- 				Select a country to view TV, Cellular and Radio Data. -->
			<!-- 			</p> -->
			<div id="searchfield">
				<form name="search Form" onsubmit="return viewValidation()" action="/AllBroadcastServlet" target="_blank">
					<input type="hidden" name="action" value="viewAllBroadcasts"> <input type="text" name="country" class="biginput" id="autocomplete"> <input type="submit" name="submit" value="GO">
					<div id="outputbox">
						<p id="outputcontent">Choose a country.</p>
					</div>
				</form>
			</div>
			<!-- @end #searchfield -->
		</div>
		<!-- @end #content -->
	</div>
	<%
		if (identity.equalsIgnoreCase("gagarwa2@jaguarlandrover.com"))
			{
	%>
	<div id="w">
		<div id="content">
			<p>UPLOAD DATA FROM EXCEL</p>
			<form action="/Upload" method="post" enctype="multipart/form-data" onsubmit="return Checkfiles(this);">
				<input size="70" type="file" name="filename" /> <input type="submit" value="Upload Data" />
				 <br> Report Type:<select name="type">
					<option value="">--Select Type--</option>
					<option value="Cellular">Cellular</option>
					<option value="Tv">Tv</option>
					<option value="Radio">Radio</option>
				</select>
			</form>
		</div>
	</div>
	<%
		}
		} else
		{
	%>
	<h1>Please LOGIN with a valid JLR domain account.</h1>
	<%
		}
	%>
	<!-- @end #w -->
</body>
</html>